package com.restaurant.application.login.support;

import com.nebutown.base.data.View;
import com.nebutown.base.data.ViewUpdate;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.login.Login;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractLogin extends AbstractImpl implements Login {

    private static final Logger logger = LoggerFactory.getLogger(Login.class);

    public final Class<?> getEffectiveInterface() {
        return Login.class;
    }

    public Logger getLogger() {
        return logger;

    }
    public static CmdCapsule CMD_LOGIN = new CmdCapsule("login", 0, LoginData.class);
    public abstract ViewUpdate login(LoginData login, int[] seq);

    public View newLogin(String id, LoginPageData data) {
        return buildView(id, com.restaurant.application.login.Login.class, "login", data, null, null);
    }
}
